package com.htgd.gardenexpo.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author: 王秀田
 * @date: 2024/11/8 9:19
 * @description: TODO
 */
@Data
public class GeConCritiqueVO {

    @ApiModelProperty(value = "评论/回复ID")
    private Long id;

    @ApiModelProperty(value = "用户名")
    private String name;

    @ApiModelProperty(value = "用户头像")
    private String url;

//    @ApiModelProperty(value = "open_id")
//    private String openId;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "ip")
    private String ip;

    @ApiModelProperty(value = "ip地址")
    private String ipAddress;

    @ApiModelProperty(value = "父ID")
    private Long replyId;

    @ApiModelProperty(value = "类型（'1'：评论，'2'：回复）")
    private String type;

    @ApiModelProperty(value = "评论/回复数量")
    private Integer num;

    @ApiModelProperty(value = "社交内容ID")
    private String contentId;

    @ApiModelProperty(value = "回复列表：最多展示三条")
    private List<GeConCritiqueVO> geConCritiques;
}
